package com.gzhryc.shared_device.base.enums;

public enum ENetworkType {

    IOT(1, "物联网"), Bluetooth(2, "蓝牙"), NotNetwork(4, "不联网");

    private Integer index;
    private String note;

    ENetworkType(Integer index, String note) {
        this.index = index;
        this.note = note;
    }

    public Integer index() {
        return index;
    }

    public String note() {
        return note;
    }

    public static String note(Integer index) {
        ENetworkType[] temp = ENetworkType.values();
        for (int i = 0; i < temp.length; i++) {
            ENetworkType item = temp[i];
            if (item.index.equals(index)) {
                return item.note;
            }
        }
        return null;
    }
}
